﻿Public Class HocSinhBUS
    Public Shared Function Them(ByVal cn As HocSinhDTO) As Integer
        Return HocSinhDAO.Them(cn)
    End Function
    'Public Shared Function Sua(ByVal cn As HocSinhDTO) As Integer
    '    Return HocSinhDAO.Sua(cn)
    'End Function
    Public Shared Function SuaKhachHang(ByVal cn As HocSinhDTO) As Integer
        Return HocSinhDAO.SuaKhachHang(cn)
    End Function
    'Public Shared Function Xoa(ByVal Id As Integer) As Integer
    '    Return HocSinhDAO.Xoa(Id)
    'End Function
    Public Shared Function SelectAll() As List(Of HocSinhDTO)
        Return HocSinhDAO.SelectAll()
    End Function
    'Public Shared Function SelectAll1() As List(Of HocSinhDTO)
    '    Return HocSinhDAO.SelectAll1()
    'End Function
    Public Shared Function SelectByMaLop(ByVal MaLop As Integer) As List(Of HocSinhDTO)
        Return HocSinhDAO.SelectByMaLop(MaLop)
    End Function
    Public Shared Function SelectByKey(ByVal Id As Integer) As HocSinhDTO
        Return HocSinhDAO.SelectByKey(Id)
    End Function
    'Public Shared Function LayDSHocSinh(ByVal Id As Integer) As HocSinhDTO
    '    Return HocSinhDAO.SelectByKey(Id)
    'End Function

    Public Shared Function LayDSHocSinh() As List(Of HocSinhDTO)
        Return HocSinhDAO.LayDSHocSinh()
    End Function
    Public Shared Function XoaKhachHang(ByVal hs As HocSinhDTO) As Integer
        'Dim hsDAO As New HocSinhDAO()
        Return HocSinhDAO.XoaKhachHang(hs)
    End Function

    


End Class
